From 4976068a276b08da4d11808890dd6d79ec1daa41 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 18 May 2006 10:05:32 +0100 Subject: [PATCH] [NET] front: The receive buffer accounting should be unsigned to avoid range comparison issues. Signed-off-by: Stephen Hemminger --- linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index e939df2341..c096cc6a0d 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -100,7 +100,7 @@ struct netfront_info { #define RX_MIN_TARGET 8 #define RX_DFL_MIN_TARGET 64 #define RX_MAX_TARGET min_t(int, NET_RX_RING_SIZE, 256) - int rx_min_target, rx_max_target, rx_target; + unsigned rx_min_target, rx_max_target, rx_target; struct sk_buff_head rx_batch; struct timer_list rx_refill_timer; -- 2.30.2